package com.innovations.inn.domain;

import com.innovations.common.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 科研成果评价对象 research_outcomes_reviews
 *
 * @author dp
 * @date 2024-08-09
 */
@Data
public class ResearchOutcomesReviews {
    private static final long serialVersionUID = 1L;

    /**
     * 评价标识
     */
    private Long reviewsId;

    /**
     * 科研成果标识
     */
    @Excel(name = "科研成果标识")
    private Long researchOutcomesId;

    /**
     * 评分
     */
    @Excel(name = "评分")
    private BigDecimal rating;

    /**
     * 评价人
     */
    @Excel(name = "评价人")
    private String reviewBy;

    /**
     * 评价内容
     */
    @Excel(name = "评价内容")
    private String reviewText;

    /**
     * 评价时间
     */
    @Excel(name = "评价时间")
    private String reviewTime;

    /**
     * 状态;0：待审核；1：审核通过；2：审核不通过；3：自动审核；
     */
    @Excel(name = "状态;0：待审核；1：审核通过；2：审核不通过；3：自动审核；")
    private Long state;

    /**
     * 逻辑删除
     */
    @Excel(name = "逻辑删除")
    private Long isDeleted;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("reviewsId", getReviewsId())
                .append("researchOutcomesId", getResearchOutcomesId())
                .append("rating", getRating())
                .append("reviewBy", getReviewBy())
                .append("reviewText", getReviewText())
                .append("reviewTime", getReviewTime())
                .append("state", getState())
                .append("isDeleted", getIsDeleted())
                .toString();
    }
}
